<script setup>
import {useCounterStore} from "@/store/counter.js";

const counter = useCounterStore()
</script>

<template>
  <div>
    子组件1 - {{ counter.count }}
    <button @click="counter.increment()">+</button>
  </div>
</template>

<style scoped>

</style>
